<template>
  <div>
    <address-header :msg="msg"></address-header>
    <div class="msg1">
      <ul>
        <li class="item font15" v-for="(item,index) in contact">
          <label :for="item.input">{{item.label}}</label>
          <input type="text" :id="item.input">
          <i :class="item.i"></i>
        </li>
      </ul>
    </div>

    <div class="msg2">
      <ul>
        <li class="item font15" v-for="(item,index) in contact2">
          <label :for="item.input">{{item.label}}</label>
          <input type="text" :id="item.input">
          <i :class="item.i"></i>
        </li>
      </ul>
    </div>

    <a href="#" class="sure-btn">确定</a>

    <router-view></router-view>

  </div>
</template>

<script>
  import addressHeader from 'base/header'

  export default {
    data() {
      return {
        msg: '添加收货地址',
        contact: [
          {
            label: '收货人',
            input: 'takePeople',
            i: 'close'
          },
          {
            label: '手机号',
            input: 'phone',
            i: 'close'

          },
          {
            label: '收货时间，收货时间不限',
            input: 'time',
            i: 'arrow-right'
          }
        ],
        contact2: [
          {
            label: '所在地区，请选择',
            input: 'address',
            i: 'arrow-right'
          },
          {
            label: '详细地址',
            input: 'detail-address',
            i: 'close'
          },
        ]
      }
    },
    components: {
      addressHeader
    },
    methods: {}
  }
</script>

<style scoped rel="stylesheet/sass" lang="scss">
  @import "../../common/style/scss/mixin.scss";

  .msg1 {
    margin: 20px auto;
    ul li.item:nth-child(3) input{
      width: 150px;
    }
  }
  .item {
  @include flex;
    width: 100%;
    height: 100px;
    background: #fff;


    input {
      background: 540px;
      width: 300px;
      height: 100px;
      font-size: 20px;
      outline: none;
      margin-left: 10px;
    }
  }
.sure-btn{
  position: fixed;
  bottom: 20px;
  left: 50%;
  margin-left: -250px;
  display: block;
  width: 500px;
  height: 60px;
  line-height: 60px;
  background: #e0e0e2;
  text-align: center;
  font-size: 20px;
}

</style>
